.tabs {
  display: flex;
  gap: var(--spacing-tighter);
  position: relative;
  padding-inline: var(--spacing-base);
  margin-top: var(--spacing-tighter);

  .tab {
    padding: var(--spacing-tighter) var(--spacing-base);
    border-radius: var(--corner-radius-small) var(--corner-radius-small) 0 0;
    border-width: 1px 1px 0;
    border-style: solid;
    border-color: transparent;
    background-color: var(--color-neutral-background);
    cursor: pointer;
    position: relative;
    z-index: 0;

    &:hover {
      border-color: var(--color-neutral-border);
    }

    &.active {
      border-color: var(--color-neutral-border);
      border-bottom-color: transparent;
      z-index: 2;
    }
  }

  &::after {
    content: "";
    display: block;
    height: 1px;
    background-color: var(--color-neutral-border);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
  }
}
